package hn.cch.mybatis.mapper;

import hn.cch.mybatis.entity.school.Student;
import hn.cch.mybatis.entity.school.Teacher;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SchoolMapper {

    public List<Student> getAllStudent();

    public List<Teacher> getAllTeacher();

    public Teacher getTeacherById(@Param("id") String id);

    public List<Student> getStudentListByTeacherId(@Param("teacherId") String teacherId);

}
